[NO-ISSUE] refactor: replace Label Required tag with inline * (Required) indicator#710
Open
isaquebock wants to merge 5 commits into
Open
[NO-ISSUE] refactor: replace Label Required tag with inline * (Required) indicator#710isaquebock wants to merge 5 commits into
isaquebock wants to merge 5 commits into
Conversation
… indicator The Required tag (severity=warning size=small) is replaced by inline text 'asterisk + Required', where the asterisk uses var(--primary) (orange F3652B) and the word Required uses var(--text-muted). The asterisk is decorative (aria-hidden=true) so screen readers announce only 'Required' alongside the label text. Applies uniformly across every consumer of Label with required=true: field-text, field-password, field-input-group, field-checkbox, field-radio, field-switch, field-textarea. Tag component is no longer imported by label.vue. Spec body updated (Purpose, Props JSDoc, Tokens, Accessibility); checksum refreshed to e261b72f (also fixes a pre-existing checksum drift on label.md that the enforce-spec-exists hook flagged when this change tried to write).
…parentheses Wrap the required word in parentheses and add a space between the asterisk and the parenthesized text, producing '* (Required)' instead of the previous '*Required'. The asterisk stays orange (var(--primary)) and (Required) stays muted (var(--text-muted)); the * remains aria-hidden so screen readers still announce only '(Required)'. Spec Purpose, Props JSDoc, Tokens, and Accessibility sections updated to match; checksum refreshed.
HerbertJulio
approved these changes
Jul 1, 2026
HerbertJulio
requested changes
Jul 1, 2026
HerbertJulio
left a comment
Contributor
There was a problem hiding this comment.
Atualize os fields : field-text, field-password, field-checkbox, field-radio, field-switch, field-textarea, para que reflitam o estado atual, já que eles não estão sendo atualizados corretamente.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Swaps the
Tagbadge used by theLabelcomponent for the required state (severity="warning"size="small"value="Required") for a lighter inline text indicator:<span aria-hidden="true">*</span> (Required)— the*coloredvar(--primary)(the F3652B orange) and the parenthesized(Required)invar(--text-muted).aria-hidden="true"), so screen readers announce only "(Required)" alongside the label text.Tagis no longer imported bylabel.vue..specs/label.md) body updated (Purpose, Props JSDoc, Tokens, Accessibility) and checksum refreshed.Notes
<Label :required>:field-text,field-password,field-checkbox,field-radio,field-switch,field-textarea, and the upcomingfield-input-group(opened separately as PR [NO-ISSUE] feat: add InputGroup composition component with Addon sub-component #709).Label(required: booleanbehavior is unchanged; only the visual/textual form differs).Test plan
pnpm storybook:dev— openComponents/Inputs/Label→Requiredstory. Verify the* (Required)text appears in place of the old orange Tag chip.Field*component withrequired=true— all inherit the new indicator without further edits.